import request from '@/utils/http';
import { IUserItem } from './type';
/** 角色管理 */
// export const userList = (params: any): Promise<App.RequestTableResult<IUserItem>> => {
//   return request.get(`/mock/user`, { params });
// };
/** 分页查询角色列表 */
export const roleList = (data: object) =>{
  return request.post(`/role/list`, data);
};
/** 新增角色 */
export const roleAddRequest = (data: object) =>{
  return request.post(`/role/add`, data);
};
/** 回显角色 */
export const roleViewRequest = (data: object) =>{
  return request.post(`/role/view`, data);
};
/** 编辑角色 */
export const roleEditRequest = (data: object) =>{
  return request.post(`/role/edit`, data);
};
/** 删除 */
export const roleDeleteRequest = (data: object) =>{
  return request.post(`/role/delete`, data);
};
/** 修改状态 */
export const roleStatusRequest = (data: object) =>{
  return request.post(`/role/status`, data);
};